class ApplicationController < ActionController::Base
  protect_from_forgery
  
  before_filter :set_initial_data
  
  def set_initial_data
    @categories = Category.all
    session['cart'] ||= []
  end
end
